<?php
include_once("../../service/productService.php");

$imgPath = $_POST["imgPath"];
$disId = $_POST["id"];

if(isset($disId) && isset($imgPath)) updateDiscountImage($disId, $imgPath);
?>